package com.org.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.org.dao.IQqEmailDao;
import com.org.model.Qqemail;
import com.org.service.IQqEmailService;

@Service
public class QqEmailServiceImpl implements IQqEmailService
{
	@Autowired 
	private IQqEmailDao qqEmailDao;

	public Map<String, Object> getQqEmailLists(Map<String, Object> params) throws Exception {
		return qqEmailDao.getQqEmailLists(params);
	}

	public Qqemail getEmailById(String primaryKey) throws Exception {
		return qqEmailDao.getEmailById(primaryKey);
	}

	public void updateEmailById(Qqemail entity) throws Exception {
		qqEmailDao.updateEmailById(entity);
	}

	public void insertEmail(Qqemail entity) throws Exception {
		qqEmailDao.insertEmail(entity);
	}

	public boolean getIsExistEmail(String email) throws Exception {
		return qqEmailDao.getIsExistEmail(email);
	}

	@Override
	public void deleteEmailById(String primaryKey) throws Exception {
		qqEmailDao.deleteEmailById(primaryKey);
	}
	
}
